#include <stdio.h>
#include <stdlib.h>
void main()
{
    int n;
    int stack[10000];
    int input[10000];
    int top = -1;
    int i;
    printf("please enter a number:");
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        if (top == -1)
        {
            stack[++top] = input[i];
        }
        else if (top != -1 && stack[top] > input[i])
        {
            /* code */
        }
    }
}